<?php

use yii\db\Migration;

/**
 * Class m202405_191933_contest
 */
class m202405_191933_contest extends Migration
{
    /**
     * {@inheritdoc}
     */
    public function safeUp()
    {
        $this->addColumn('{{contest}}', 'isShareCode', 'SMALLINT NOT NULL DEFAULT 1');
        $this->addColumn('{{contest}}', 'isShowError', 'SMALLINT NOT NULL DEFAULT 0');
    }

    /**
     * {@inheritdoc}
     */
    public function safeDown()
    {
        $this->dropColumn('{{contest}}', 'isShareCode');
        $this->dropColumn('{{contest}}', 'isShowError');
    }
}
